package com.dhl.fin.api.domain;

import com.dhl.fin.api.common.domain.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @author CuiJianbo
 * @since 2025/4/25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_lend_daily_interest")
public class LendDailyInterest extends BasicDomain {

    /**
     * 利息
     */
    @Column(columnDefinition = "decimal(10,3)")
    private Double interestAmount;

    /**
     * 违约罚息
     */
    @Column(columnDefinition = "decimal(10,3)")
    private Double penaltyAmount;

    /**
     * 还款余额
     */
    private Integer lendBalanceAmount;

    @ManyToOne
    @JoinColumn(name = "lend_record_id")
    private LendRecord lendRecord;

}
